/******************************************************************************
 * Copyright (C) 2017 Chengdu Dlhd information industry co. LTD.
 * All Rights Reserved.
 * 本软件为成都顶联互动信息产业有限公司开发研制。未经本公司正式书面同意，其他任何个人、团体不得使用、复制、修改或发布本软件.
 *****************************************************************************/
package net.dgg.dggcloud.service.jrcrm.entity.business;

import net.dgg.dggcloud.service.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @ClassName 〈Business>
 * @Description 商机转介绍记录实体
 * @Author 罗金
 * @Date 2018/1/11 11:37
 */
@Entity
@Table(name = "cms_referral_record")
public class ReferralRecord extends BaseEntity{


    public static final String TABLE_NAME = "cms_referral_record";

    /**
     * 商机Id
     */
    @Column(name = "business_id")
    private Long businessId;
    @Column(name = "hk_id")
    private Long hkId;

    /**
     * 认款金额
     */
    @Column(name = "rk_money")
    private Long rkMoney;

    /**
     * 认款时间
     */
    @Column(name = "rk_time")
    private Date rkTime;

    /**
     * 业绩划分比列
     */
    @Column(name = "performance_proportion")
    private Long performanceProportion;


    /**
     * 业绩划分金额
     */
    @Column(name = "performance_proportion_money")
    private Long performanceProportionMoney;


    /**
     * 红包提成比列
     */
    @Column(name = "tc_proportion")
    private Long tcProportion;

    /**
     * 红包提成比列
     */
    @Column(name = "tc_proportion_money")
    private Long tcProportionMoney;

    @Transient
    private BigDecimal tcLsProportionMoney;
    @Column(name = "status")
    private Integer status;
    @Column(name = "practical_money")
    private Long practicalMoney;
    @Column(name = "tc_red_money")
    private Long  tcRedMoney;

    public Date getFaTime() {
        return faTime;
    }

    public ReferralRecord setFaTime(Date faTime) {
        this.faTime = faTime;
        return this;
    }

    @Column(name = "order_no")
    private String orderNo;
    @Column(name = "fa_time")
    private Date faTime;



    public static String getTableName() {
        return TABLE_NAME;
    }

    public Long getBusinessId() {
        return businessId;
    }

    public ReferralRecord setBusinessId(Long businessId) {
        this.businessId = businessId;
        return this;
    }

    public Long getRkMoney() {
        return rkMoney;
    }

    public ReferralRecord setRkMoney(Long rkMoney) {
        this.rkMoney = rkMoney;
        return this;
    }

    public Date getRkTime() {
        return rkTime;
    }

    public ReferralRecord setRkTime(Date rkTime) {
        this.rkTime = rkTime;
        return this;
    }

    public Long getPerformanceProportion() {
        return performanceProportion;
    }

    public ReferralRecord setPerformanceProportion(Long performanceProportion) {
        this.performanceProportion = performanceProportion;
        return this;
    }

    public Long getPerformanceProportionMoney() {
        return performanceProportionMoney;
    }

    public ReferralRecord setPerformanceProportionMoney(Long performanceProportionMoney) {
        this.performanceProportionMoney = performanceProportionMoney;
        return this;
    }

    public Long getTcProportion() {
        return tcProportion;
    }

    public ReferralRecord setTcProportion(Long tcProportion) {
        this.tcProportion = tcProportion;
        return this;
    }

    public Long getTcProportionMoney() {
        return tcProportionMoney;
    }

    public ReferralRecord setTcProportionMoney(Long tcProportionMoney) {
        this.tcProportionMoney = tcProportionMoney;
        return this;
    }

    public Integer getStatus() {
        return status;
    }

    public ReferralRecord setStatus(Integer status) {
        this.status = status;
        return this;
    }

    public Long getPracticalMoney() {
        return practicalMoney;
    }

    public ReferralRecord setPracticalMoney(Long practicalMoney) {
        this.practicalMoney = practicalMoney;
        return this;
    }

    public Long getHkId() {
        return hkId;
    }

    public ReferralRecord setHkId(Long hkId) {
        this.hkId = hkId;
        return this;
    }

    public Long getTcRedMoney() {
        return tcRedMoney;
    }

    public ReferralRecord setTcRedMoney(Long tcRedMoney) {
        this.tcRedMoney = tcRedMoney;
        return this;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public ReferralRecord setOrderNo(String orderNo) {
        this.orderNo = orderNo;
        return this;
    }

    public BigDecimal getTcLsProportionMoney() {
        return tcLsProportionMoney;
    }

    public ReferralRecord setTcLsProportionMoney(BigDecimal tcLsProportionMoney) {
        this.tcLsProportionMoney = tcLsProportionMoney;
        return this;
    }
}